:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 300px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('');
    opacity: 0.3;
    z-index: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin: 0 auto 1.5rem;
    background-color: #ddd;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill {
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background-color: var(--light-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #555;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-description {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--dark-color);
}

.problem-solution {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.problem-solution:last-child {
    margin-bottom: 0;
}

.problem-solution h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.problem {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.solution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.highlight {
    : linear-gradient(to right, rgba(46, 204, 113, 0.2), rgba(52, 152, 219, 0.2));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 12px 0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-link i {
    font-size: 24px;
    margin-bottom: 6px;
}

.contact-link span {
    font-size: 14px;
    color: #333;
}

.email {
    background-color: #f8f9fa;
}

.email i {
    color: #e74c3c;
}

.qq {
    background-color: #f0f7ff;
}

.qq i {
    color: #2980b9;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .image-gallery {
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .intro-content {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .contact-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80px;
        padding: 12px 0;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .contact-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .project-card.vertical {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-bottom: 2rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card.vertical:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .project-header {
        padding: 1.5rem 1.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .project-title {
        font-size: 1.5rem;
        margin: 0 0 0.5rem;
        color: #333;
    }

    .project-meta {
        display: flex;
        gap: 1rem;
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1rem;
    }

    .project-body {
        padding: 1.5rem;
    }

    .project-image {
        margin-bottom: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-image img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        display: block;
    }

    .project-content {
        margin-bottom: 1.5rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.5rem;
        color: #444;
    }

    .project-description {
        line-height: 1.6;
        color: #555;
        margin-bottom: 1rem;
    }

    .project-responsibilities,
    .project-achievements {
        padding-left: 1.2rem;
        color: #555;
        line-height: 1.6;
    }

    .project-responsibilities li,
    .project-achievements li {
        margin-bottom: 0.5rem;
    }

    .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .tech-tag {
        background: #f0f4ff;
        color: #5b80f0;
        padding: 0.3rem 0.8rem;
        border-radius: 50px;
        font-size: 0.85rem;
    }

    .project-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
        border-top: 1px solid #eee;
        padding-top: 1.5rem;
    }

    .project-link {
        display: inline-block;
        padding: 0.6rem 1.2rem;
        background: #429ddf;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.9rem;
        transition: background 0.3s ease;
    }

    .project-link:hover {
        background: #5c7dde;
    }
    
}